package com.example.bnuzzu.controller;

import com.example.bnuzzu.common.lang.Result;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController		
public class Test {
	@RequestMapping("/test")
	public String testing() {
		return "success!";
	}

	@RequiresAuthentication
	@RequestMapping("/test1")
	public Result tested(){
		return Result.success(null);
	}
}
